<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>飞网管理系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content=飞网管理系统 name=Keywords><LINK href="ext/style.css" type=text/css rel=stylesheet>
<LINK href="ext/ext-all.css" type=text/css rel=stylesheet>
<SCRIPT src="ext/ext-base.js" type=text/javascript></SCRIPT>
<SCRIPT src="ext/ext-all.js" type=text/javascript></SCRIPT>

	<script type="text/javascript">

			function resetf(){
			        newVCode();
			    	document.getElementById('userName').value ='';
                    document.getElementById('passWord').value='';
                    document.getElementById('verifyCode').value='';
			}

			function newVCode()
		    {
		        url="image.jsp?updatetime="+new Date().getTime();
		        document.getElementById("vcode").src=url;
		    }

			function dosubmitF(){

		 			if(Ext.getDom("userName").value==""){
						Ext.MessageBox.show({
							title : '提示',
							msg : '请输入用户名！',
							buttons : Ext.MessageBox.OK,
							icon : Ext.MessageBox.WARNING,
							width : 400
							});
						Ext.get("verifyCode").focus();

						return;
					}
					if(Ext.getDom("passWord").value==""){
						Ext.MessageBox.show({
							title : '提示',
							msg : '请输入密码！',
							buttons : Ext.MessageBox.OK,
							icon : Ext.MessageBox.WARNING,
							width : 400
							});
						Ext.get("verifyCode").focus();

						return;
					}

					if(Ext.getDom("verifyCode").value==""){
						Ext.MessageBox.show({
							title : '提示',
							msg : '请输入验证码！',
							buttons : Ext.MessageBox.OK,
							icon : Ext.MessageBox.WARNING,
							width : 400
							});
						Ext.get("verifyCode").focus();

						return;
					}


			     Ext.Ajax.request({
                  url : 'ajaxjsp/login.jsp?rtmd='+new Date().getTime(),
                  method : 'POST',
                  loadMask: 'please wait...',
                  params : {
                      username : Ext.getDom("userName").value,
                      password : Ext.getDom("passWord").value,
                      randCode : Ext.getDom("verifyCode").value
                  },
                  success: function(response, options) {
                        //获取响应的json字符串
                       var responseArray = Ext.util.JSON.decode(response.responseText);
                            if(responseArray.success==true){
								window.location.href = 'jsps/forward.jsp?rtmda='+new Date().getTime();
                            }
                            else{
                            	newVCode();
                            	document.getElementById('passWord').value ='';
                            	document.getElementById('verifyCode').value='';

                            	Ext.MessageBox.show({
									title : '提示',
									msg : responseArray.errors.msg,
									buttons : Ext.MessageBox.OK,
									icon : Ext.MessageBox.WARNING,
									width : 400
									});

                            }
                         }
              	});
			}
 		</script>
</HEAD>
<BODY><!--top start-->
<DIV id=top>
<TABLE height=98 cellSpacing=0 cellPadding=0 width=1000 border=0>
  <TBODY>
  <TR>
    <TD>&nbsp;</TD></TR></TBODY></TABLE></DIV><!--top end--><!--main start-->
<DIV id=main>
<TABLE height=279 cellSpacing=0 cellPadding=0 width=1000 border=0>
  <TBODY>
  <TR>
    <TD width=283>
      <DIV id=main_left></DIV></TD>
    <TD width=438>
      <DIV id=main_con>
      <TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
        <TBODY>
        <TR>
          <TD width=50 height=21>用户名：</TD>
          <TD align=left width=139 height=21><LABEL><INPUT class=yo
            id=userName maxLength=18 name=userName> </LABEL></TD></TR>
        <TR>
          <TD width=50 height=21>密&nbsp;&nbsp;&nbsp;&nbsp;码：</TD>
          <TD align=left width=139 height=21><LABEL><INPUT class=yo
            id=passWord type=password maxLength=18 name=passWord> </LABEL></TD></TR>
        <TR>
          <TD width=50 height=21>验证码：</TD>
          <TD align=left width=139 height=21><INPUT class=ya
            id=verifyCode maxLength=4 name=verifyCode><span><img src="image.jsp" alt="" id="vcode" onclick="newVCode()" style="cursor:hand"/></span></TD></TR>
        <TR>
          <TD colSpan=2 height=30><INPUT
            style="MARGIN-TOP: 10px; MARGIN-LEFT: 53px" type=image height=21
            width=69 src="loginimages/pic14.jpg"
            border=0 name=logon onclick="dosubmitF()">&nbsp;<INPUT type=image height=21 width=69
            src="loginimages/pic15.jpg" border=0
            name=close onclick="resetf()"> </TD></TR></TBODY></TABLE></DIV></TD>
    <TD width=283>
      <DIV id=main_right></DIV></TD></TR></TBODY></TABLE></DIV><!--main end--><!--main2 start-->
<DIV id=main2>
<TABLE height=57 cellSpacing=0 cellPadding=0 width=1000 border=0>
  <TBODY>
  <TR>
    <TD width=284>
      <DIV id=main2_left></DIV></TD>
    <TD width=438>
      <DIV id=main2_con>
      <DIV id=main2c_left></DIV>
      <DIV id=main2c_con></DIV></DIV></TD>
    <TD width=282>
      <DIV id=main2_right></DIV></TD></TR></TBODY></TABLE></DIV><!--main2 end--><!--bottom start-->
<DIV id=bottom>
<P>本系统建议使用或以上版本浏览计算机屏幕分辩使用1024*768或以上&nbsp;&nbsp;Power By td<BR></P></DIV><!--bottom end--></BODY></HTML>
